import java.util.Random;

public class Maopao{
	public static void main(String[] args) {
		int temp;
		Random random=new Random();
		int[] arr=new int[10];
		
		for (int i = 0; i < arr.length; i++) {
			arr[i]=random.nextInt(100);
		}
		for (int i = 0; i < arr.length; i++) {
			for (int j = i+1; j < arr.length; j++) {
				if(arr[i]>arr[j]){
					temp=arr[i];
					arr[i]=arr[j];
					arr[j]=temp;
				}
			}
			System.out.print(arr[i]+",");
		}
	}
}



